home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Nt / Demo / dl.nt / mci / readme.txt < prev   
Encoding:
Text File  |  1995-12-17  |  1002 b   |  23 lines  |  [TEXT/R*ch]

  1. Notes for MCI.
  2.  
  3.  
  4. mcimodule.c is a demo of dynamic loading under the NT environment.  It has a _very_ basic interface into the Windows MCI interface.
  5.  
  6. Using the Extension Module:
  7. * First the extension module must be built.  This will create mcimodule.dll.
  8. * mcimodule.dll must be in a directory pointed at by the PYTHONPATH environment variable (being on the PATH is not sufficient (or required!))
  9. * start python.
  10. * enter the command 'import mci' (without quotes) and press enter.
  11. * enter the command 'mci.send("play c:/winnt/chord.wav")' <enter> (substitute your windows/WindowsNT directory if it is not as above)
  12. * If you have an .AVI file available, enter the command above, but with the AVI filename, to see Video for Windows.
  13. * Look up the "mciSendString()" command in the Win32 SDK help to see what else you can do with the MCI interface.
  14.  
  15. Building the Module:
  16. Simply run the command:
  17.     nmake /f makefile.nt.mak
  18. or
  19.     nmake /f makefile.nt.mak NODEBUG=1
  20. for the optimised, non-debug version.
  21.  
  22. - eof -
  23.